/**
 * Created by Administrator on 2017/9/24.
 */
$(function () {

    $(".myCar li").click(function () {
        $("#vehicleId").val($(this).attr("data"));
        //$(this).addClass("active").siblings().removeClass("active");
        var url = $("#pageForm").attr("action")+"?currentPage=1";
        $("#pageForm").attr("action",url);
        $("#pageForm").submit();
    });

    $(".select-detail-item li").click(function () {
        $(this).addClass("active").siblings().removeClass("active");
    });

    $(".select-item li").click(function () {
        $(this).addClass("active").siblings().removeClass("active");
        var tardiv = $(this).attr("data");
        $(".report-detail .lbl-item").css("color","");
        $("#"+tardiv + " .lbl-item").css("color","#fff");
        $("#"+tardiv)[0].scrollIntoView(true);
    });

    $(".itemclaim-icon").click(function () {
        var context = $(this).attr("data");
        $("#pop1 p").text(context);
        document.getElementById('pop1').style.display='block';
        document.getElementById('pop2').style.display='none';
        document.getElementById('light').style.display='block';
        document.getElementById('fade').style.display='block'
    });
    $(".itemanalyze-icon").click(function () {
        var context = $(this).attr("data");
        $("#pop2 p").text(context);
        document.getElementById('pop1').style.display='none';
        document.getElementById('pop2').style.display='block';
        document.getElementById('light').style.display='block';
        document.getElementById('fade').style.display='block'
    });
});
